package com.yungu.swift.assets.passenger.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yungu.swift.assets.passenger.dao.PassengerRechargeMapper;
import com.yungu.swift.assets.passenger.model.dto.PassengerRechargeDto;
import com.yungu.swift.assets.passenger.service.PassengerRechargeService;
import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;


/**
 * PassengerRechargeServiceImpl
 **/

@Service
public class PassengerRechargeServiceImpl extends BaseServiceImpl<PassengerRechargeDto> implements PassengerRechargeService {

    @Autowired
    private PassengerRechargeMapper passengerRechargeMapper;

    @Override
    protected IMapper<PassengerRechargeDto> getMapper() {
        return passengerRechargeMapper;
    }

    @Override
    public ResponseData<PassengerRechargeDto> findPassengerRechargeDto(Map<String, Object> map) {
        return ResponseData.buildSuccessResponse(passengerRechargeMapper.getPassengerRechargeDto(map));
    }
}